package com.retallife.admin.service.Goods.Impl;

import com.retallife.admin.dao.Goods.GoodsMapper;
import com.retallife.admin.pojo.Goods.GoodsUpdateVo;
import com.retallife.admin.pojo.Goods.GoodsVo;
import com.retallife.admin.service.Goods.GoodsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class GoodsServiceImpl implements GoodsService {

    @Autowired
    GoodsMapper goodsMapper;

    /**
     * 查询商品
     * @return 是否查询成功
     */
    public List<GoodsVo> AdminFindAllGoods() {
        return goodsMapper.AdminFindAllGoods();
    }

    /**
     * 审核商品
     * @param goodsUpdateVo
     * @return 是否审核成功
     */
    public int AdminUpdateGoods(GoodsUpdateVo goodsUpdateVo) {
        return goodsMapper.AdminUpdateGoods(goodsUpdateVo);
    }
}
